<template>
  <div class="charater-select-item-wrap" @click="clickFun">
    <div class="name">{{ roleInfo.roleName }}</div>
    <i class="el-icon-arrow-right" />
  </div>
</template>
<script>
export default {
  name: 'CharaterSelectItem',
  props: {
    roleInfo: {
      type: Object,
      default: () => {
        return null;
      }
    }
  },
  methods: {
    clickFun() {
      this.$emit('click', this.roleInfo);
    }
  }
};
</script>
<style lang="scss" scoped>
.charater-select-item-wrap {
  display: flex;
  padding: 12px 12px 12px 24px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  .name {
    flex: 1;
    font-weight: bold;
  }
}
.charater-select-item-wrap:hover {
  background-color: #F5F5F5;
}
</style>
